package cn.driver.common.tools;

/**
 * 枚举
 */
public enum HttpEnum {

    OK_200(200, "请求成功！"),

    FAIL_502(502, "请求失败！"),

    /**
     * 服务内部错误
     */
    ERROR_500(500, "服务内部错误！"),

    /**
     * 非法参数
     */
    ERROR_600(600, "非法参数"),

    /**
     * 404
     */
    NOTFOUND_404(404, "请求资源路径不存在！"),

    /**
     * 操作成功
     */
    HADNLE_201(201, "操作成功！"),

    /**
     * 操作失败
     */
    HANDLE_500(500, "操作失败！");


    private int code;
    private String desc;

    HttpEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int code() {
        return code;
    }

    public String desc() {
        return desc;
    }


}
